package com.niiwoo.civet.mobile.vo.request.refund;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

/**
 * 机构还款
 */
@Getter
@Setter
@ApiModel
public class OrgRepayRequestVO {
    @NotNull(message = "访问令牌不能为空")
    @ApiModelProperty(value = "访问令牌")
    private String token;

    @ApiModelProperty(value = "第三方渠道(H5) 1-融360 2-卡牛 3-机构极速借, 默认channel=1")
    private Integer channel;

    @ApiModelProperty(value = "机构CODE,当channel=3,即机构极速借时才有")
    private String orgCode;

    /**
     * 标的ID
     */
    @ApiModelProperty(value = "标的ID", required = true)
    private Long projectId;

    @NotNull(message = "还款类型不能为空")
    @Min(value = 1)
    @Max(value = 2)
    @ApiModelProperty(value = "还款类型(1.立即还款 2.提前结清)", required = true)
    private Byte refundType;

}
